<!doctype html>
<html>
<head>
<title>管理角色编辑</title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<body>
<div class="wrap">
    <div id="home_toptip"></div>
    <div class="nav">
      <ul>
          <li><a href="<?php echo site_url('admin/adminrole/index')?>">角色管理</a></li> 
          <li><a href="<?php echo site_url('admin/adminrole/add')?>">添加角色</a></li>
          <li class="current"><a href="javascript:void(0)"">编辑角色</a></li>    
      </ul>
    </div>
    <div class="table_full">
	    <form class="formvalidate" action="<?php echo $form_post;?>" method="post">
	    <div class="h_a">编辑角色</div>
	    <div class="table_full">
	        <table width="100%">
	            <col class="th" />
                <col/>
	            <tbody>
	            <tr>
	                <th>角色名称</th>
	                <td><input type="text" value="<?php echo $row['name'];?>" name="Form[name]" class="input rounded" size="30" validate="{required:true,rangelength:[1,20],remote:'<?php echo $ajax_check_name;?>'}" /></td>
	            </tr>
	            <tr>
	                <th>角色描述</th>
	                <td><textarea name="Form[remark]" rows="5" cols="47"><?php echo $row['remark'];?></textarea></td>
	            </tr>
	            <tr>
	                <th>状态</th>
	                <td>
	                    <label><input type="radio" value="1"<?php if($row['status']==1):?> checked="checked"<?php endif;?> name="Form[status]" />启用</label>
                        <label><input type="radio" value="0"<?php if($row['status']==0):?> checked="checked"<?php endif;?> name="Form[status]" />禁用</label>
                    </td>
	            </tr>
	            </tbody>
	        </table>
	    </div>
	    <div class="btn_wrap">
	        <div class="btn_wrap_pd">
	            <input type="hidden" name="id" value="<?php echo $row['id'];?>" />
	            <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
	        </div>
	    </div>
	    </form>
    </div>
</div>
</body>
</html>